package com.lagou.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * desc:
 *
 * @author tengfei wang
 * @version 1.0
 * @date Created in 17/9/2020
 */
public interface HandlerInterceptor {


    default boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        return true;
    }


    default void afterHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
    }
}
